package com.henghe.frame.ddl.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/9/19 13:55
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TableColumnEntity {

    /**
     * 字段名称
     */
    private String name;

    /**
     * 字段类型
     */
    private String type;

    /**
     * 字段长度
     */
    private String length;

    /**
     * 是否可为空
     */
    private Boolean isNotNull;

    /**
     * 是否主键
     */
    private Boolean isPrimaryKey;

    /**
     * 默认值
     */
    private String defaultValue;

    private String generateType;

    /**
     * 是否自增
     */
    private Integer autoIncrement;

    /**
     * 字段注释
     */
    private String comment;
}
